﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Windows.Forms;

namespace test
{
    public partial class Component1 : RichTextBox
    {
        public Component1()
        {
            InitializeComponent();

            //this.Cursor = new Cursor(Properties.Resources.tank1);
        }

        //public static Cursor LoadCursor(string resourceName)
        //{
        //    try
        //    {
        //        using (Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName))
        //        {
        //            //return new Cursor(@"D:\代码查询\WindowsApplication1\bin\Debug\中间层\分类\系统\屏幕的捕捉\Screen_Capturing_src\Taking Screen Captures\Finder.cur");

        //            return new Cursor(resourceName);
        //        }
        //    }
        //    catch (Exception ex)
        //    {
        //        Debug.WriteLine(ex);
        //    }
        //    return null;
        //}

        public Component1(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }

        public override System.Drawing.Color BackColor
        {
            get
            {
                return System.Drawing.Color.Red;
            }
            set
            {
                base.BackColor = value;
            }
        }
    }
}
